package cn.ac.jaas.isc.vegetable.pbms.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author 张高昌
 * @date 2022-05-02 12:52:09
 */
@Data
@TableName("arc_model")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
public class ArcModel extends Model<ArcModel> {

    private static final long serialVersionUID = 1L;

    /**
     * 型号id
     */
    @TableId
    @ApiModelProperty(value = "型号id")
    private Integer modelId;

    /**
     * 型号名称
     */
    @NotBlank(message = "型号名称不能为空")
    @Length(min = 2, max = 60, message = "型号名称必须由2~60个字组成")
    @ApiModelProperty(value = "型号名称")
    private String modelName;

    /**
     * 型号编码
     */
    @NotBlank(message = "型号编码不能为空")
    @Length(min = 2, max = 30, message = "型号编码必须由2~30个字组成")
    @ApiModelProperty(value = "型号编码")
    private String modelCode;

    /**
     * 是否启用[1:启用|2:未启用][sys_model_status]
     */
    @NotNull(message = "是否启用不能为空")
    @ApiModelProperty(value = "是否启用[1:启用|2:未启用][sys_model_status]")
    private Integer status;

    /**
     * 厂商编码
     */
    @NotNull(message = "厂商编码不能为空")
    @ApiModelProperty(value="厂商编码")
    private String manufacturerCode;

    /**
     * 是否删除[0:未删除|1:已删除][sys_del_flag]
     */
    @ApiModelProperty(value="是否删除[0:未删除|1:已删除][sys_del_flag]")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Integer createUser;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private Integer updateUser;

}
